<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="keyword" content="">
    <link rel="icon" href="img/favicon.ico" type="image/x-icon"/>
    <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon"/>

    <title>登录·Login</title>

    <!-- Bootstrap core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-reset.css" rel="stylesheet">
    <!--external css-->
    <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet"/>
    <!-- Custom styles for this template -->
    <link href="css/style.css" rel="stylesheet">
    <link href="css/style-responsive.css" rel="stylesheet"/>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
    <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>\
    <script src="js/respond.min.js"></script>
    <![endif]-->
    <!-- switch组件 -->
    <link href="assets/switch/bootstrap-switch.min.css" rel="stylesheet">
    <!-- 验证码组件 -->
    <link href="assets/idcode/jquery.idcode.css" rel="stylesheet">
    <!-- 当前页面CSS -->
    <link href="css/index.css" rel="stylesheet" type="text/css"/>

    <link rel="stylesheet" type="text/css" href="assets/bootstrap-datepicker/css/datepicker.css"/>
    <style>
        html,
        body {
            display: block;
            position: absolute;
            left: 0px;
            top: 0px;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
    </style>
</head>

<body class="login-body">
<!-- 登录界面效果 -->
<div class="container login-box">
    <div class="form-signin">
        <h2 class="form-signin-heading"><span class="font-red">Information</span><span class="font-black"></span></h2>
        <div class="login-wrap">
            <input type="text" id="username" class="form-control" placeholder="工号" autofocus>
            <div class="form-pwd">
                <label class="icon-box">
                    <i class="icon-eye-open"></i>
                </label>
                <input type="password" id="password" onblur="passwordBlur()" placeholder="密码" class="form-control">
                <input type="text" id="text" style="display:none" onblur="textBlur()" placeholder="密码"
                       class="form-control">
            </div>
            <div class="idcode-box" id="lcode">
                <input type="text" id="Txtidcode" placeholder="验证码" class="form-control txtVerification"/>
                <span id="idcode"></span>
            </div>
            <label class="checkbox" style="cursor: pointer;">
                <input type="checkbox" id="remember" value="remember-me"> 记住我
                <span class="pull-right forget"> <a href="javascript:void(0);" onclick="shforget()"> 忘记密码?</a></span>
            </label>
            <button class="btn btn-lg btn-login btn-block" type="siubmit" id="btns">登录</button>
        </div>
    </div>
</div>
<!-- 忘记密码界面效果 -->
<div class="container forget-box" style="display:none;">
    <div class="form-signin">
        <h2 class="form-signin-heading"><span class="font-red">Information</span><span class="font-black"></span></h2>
        <div class="login-wrap">
            <input type="text" id="workNo" class="form-control" placeholder="工号">
            <input type="text" id="birthday" placeholder="出生年月日，参考格式：2018-01-01" class="form-control">
            <label class="checkbox">
                <span class="pull-right forget"> <a href="javascript:void(0);" onclick="shforget()"> 返回登录</a></span>
            </label>
            <button class="btn btn-lg btn-login btn-block" type="siubmit" id="forget" onclick="forget()">密码找回</button>
        </div>
    </div>
</div>

<!-- js placed at the end of the document so the pages load faster -->
<!-- <script src="js/jquery.js"></script> -->
<script src="js/jquery-1.8.3.min.js"></script>
<!-- layer组件 -->
<script src="assets/layer/layer.js"></script>
<script>
    var url = window.location.href;

    function openAlert() {
        //询问框
        layer.confirm('您正在访问的是开发测试环境，是否需要访问正式发布环境？', {
            offset: '20%',
            title: '友情提示',
            btn: ['需要', '不需要'] //按钮
        }, function () {
            window.open("http://ims.certusnet.com.cn", "_self");
        });
    }

    debugger
    console.log("lalal")
    if (url.indexOf("localhost") > -1) {
        url = "http://localhost:8080/";
    } else if (url.indexOf("172.16.83.90:8086") > -1) {
        url = "http://172.16.83.90:8080/";
    } else if (url.indexOf("ims.certusnet.com.cn") > -1) {
        url = "http://221.226.67.42:8080/";
    } else if (url.indexOf("127.0.0.1:8086") > -1) {
        url = "http://172.16.3.58:8080/";
        // openAlert();
        // alert("您正在访问测试环境,真实环境请直接访问网址 ims.certusnet.com.cn");
    } else if (url.indexOf("172.16.3.58:8086") > -1) {
        url = "http://172.16.3.58:8086/end/";
    }else if (url.indexOf("172.16.83.90:8088") > -1) {
        url = "http://172.16.83.90:9090/";
    } else if (url.indexOf("172.16.83.90:8086") > -1) {
        url = "http://172.16.83.90:8086/end/";
        // openAlert();
        // alert("您正在访问测试环境,真实环境请直接访问网址 ims.certusnet.com.cn");
    } else if (url.indexOf("gz.certusnet.com.cn/") > -1) {
        url = "http://58.213.111.46:18080/";
    } else {
        url = "http://172.16.3.58:8080/";
        // openAlert();
        // alert("您正在访问测试环境,真实环境请直接访问网址 ims.certusnet.com.cn");
    }
</script>
<script src="js/bootstrap.min.js"></script>

<script src="js/jquery.scrollTo.min.js"></script>
<!-- <script src="js/jquery.nicescroll.js" type="text/javascript"></script> -->
<script src="js/jquery.sparkline.js" type="text/javascript"></script>
<script src="assets/jquery-easy-pie-chart/jquery.easy-pie-chart.js"></script>
<script src="js/owl.carousel.js"></script>
<script src="js/jquery.customSelect.min.js"></script>

<!--common script for all pages-->
<!-- <script src="js/common-scripts.js"></script> -->

<!--script for this page-->
<script src="js/sparkline-chart.js"></script>
<script src="js/easy-pie-chart.js"></script>

<!-- 外部公共js文件引入 -->
<script src="js/layout.js"></script>

<!-- switch组件 -->
<script src="assets/switch/bootstrap-switch.min.js"></script>
<!-- 验证码组件 -->
<script src="assets/idcode/jquery.idcode-certus.js"></script>
<script type="text/javascript" src="assets/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<!-- 当前页面js文件引入 -->
<script src="js/login/index.js"></script>

<script src="jquery.md5.js"></script>

<script>
    var cb = "Unknown";
</script>
</body>

</html>